import 'package:flutter/material.dart';

class PageViewPage extends StatefulWidget {
  const PageViewPage({super.key});

  @override
  State<PageViewPage> createState() => _PageViewPageState();
}

class _PageViewPageState extends State<PageViewPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text("PageView"),
      ),
      body: PageView(
        scrollDirection: Axis.vertical, // 滑动方向，默认是水平方向
        children: const [
          Center(
            child: Text("Day1"),
          ),
          Center(
            child: Text("Day2"),
          ),
        ],
      ),
    );
  }
}
